package org.xqp.basic.service;

import org.xqp.basic.query.BaseQuery;
import org.xqp.basic.util.PageList;


import java.util.List;

public interface IBaseService<T> {
    T findById(Long id);

    List<T> findAll();

    void insert(T t);

    void update(T t);

    void delete(Long id);

    PageList<T> queryList(BaseQuery query);

    void patchDelete(List<Long> ids);
}
